package com.xueyu.domain.goods;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import com.xueyu.domain.drug.drug;
/**
 * 药品订单明细表
 * @TableName orderapplydetail
 */
@TableName(value ="orderapplydetail")
@Data
public class Orderapplydetail implements Serializable {
    /**
     * 
     */
    @TableId(value = "orderDetailId", type = IdType.AUTO)
    private Integer orderdetailid;

    /**
     * 订单号/领用单号（关联orders或者orderApply表主键）
     */
    @TableField(value = "orderNo")
    private String orderno;

    /**
     * 商品ID（关联product表主键）
     */
    @TableField(value = "prodId")
    private Integer prodid;

    /**
     * 单位
     */
    @TableField(value = "unitName")
    private String unitname;
    /**
     * 单价
     */
    @TableField(value = "price")
    private Double price;

    /**
     * 数量(入库>0,出库<0)
     */
    @TableField(value = "prodCount")
    private int prodcount;
//pp
    /**
     * 小计
     */
    @TableField(value = "totalPrice")
    private Double totalprice;

    @TableField(value = "ord")
    private int ord;

    @TableField(value = "time")
    private String time;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    @TableField(exist = false)
    private List<drug> drugs;

    @TableField(exist = false)
    private List<Orderapplydetail> details;

    @TableField(exist = false)
    private drug drug; // 添加Drug对象引用

}
